package ru.testtask.service;

import ru.testtask.model.XmlDocument;
import ru.testtask.model.XmlElement;
import ru.testtask.util.XmlParseException;

import java.util.List;

public interface XmlService {

    public XmlDocument transformXmlStringToObjectModel(String filename, String xml) throws XmlParseException;

    public String transformObjectModelToXmlString(XmlDocument xmlDoc);

    public void saveObjectModel(XmlDocument xmlDoc);

    public XmlDocument readObjectModel(int id);

    public List<XmlDocument> getDocumentsList();
}
